<template>
	<!-- 出院后第1天 -->
	<view class="class-item" style="padding: 0">
		<view class="class-name">出院当天</view>
		<view class="g-container">


			<!-- 结局与资源消耗 -->
			<div class="part-item">
				<div class="part-title">结局与资源消耗</div>
				<!-- 住院总天数 -->
				<view class="selectCon">
					<view class="label">住院总天数</view>
					<input type="number" v-model="patientInjury9.total_hospital_stay" class="con" placeholder="请输入天数" />
				</view>

				<!-- ICU总住院天数 -->
				<view class="selectCon">
					<view class="label">ICU总住院天数</view>
					<input type="number" v-model="patientInjury9.total_icu_stay" class="con" placeholder="请输入天数" />
				</view>

				<!-- 机械通气总天数 -->
				<view class="selectCon">
					<view class="label">机械通气总天数</view>
					<input type="number" v-model="patientInjury9.total_days_mechanical_ventilation" class="con"
						placeholder="请输入天数" />
				</view>

				<!-- 总手术次数 -->
				<view class="selectCon">
					<view class="label">总手术次数</view>
					<input type="number" v-model="patientInjury9.total_number_of_surgeries" class="con"
						placeholder="请输入次数" />
				</view>

				<!-- 伤口愈合天数 -->
				<view class="selectCon">
					<view class="label">伤口愈合天数</view>
					<input type="number" v-model="patientInjury9.wound_healing_days" class="con" placeholder="请输入天数" />
				</view>

				<!-- 治疗总费用（元） -->
				<view class="selectCon">
					<view class="label">治疗总费用（元）</view>
					<input type="number" v-model="patientInjury9.total_treatment_cost" class="con"
						placeholder="请输入金额" />
				</view>

				<!-- 红细胞总量 -->
				<view class="selectCon">
					<view class="label">红细胞总量</view>
					<input type="number" v-model="patientInjury9.total_red_blood_cell_units" class="con"
						placeholder="请输入单位数" />
				</view>

				<!-- 血浆总量（ml） -->
				<view class="selectCon">
					<view class="label">血浆总量（ml）</view>
					<input type="number" v-model="patientInjury9.total_plasma_volume" class="con" placeholder="请输入ml" />
				</view>

				<!-- 血小板总量 -->
				<view class="selectCon">
					<view class="label">血小板总量</view>
					<input type="number" v-model="patientInjury9.total_platelet_units_therapeutic_dose" class="con"
						placeholder="请输入单位数" />
				</view>

				<!-- 全身性抗生素总使用天数 -->
				<view class="selectCon">
					<view class="label">全身性抗生素总使用天数</view>
					<input type="number" v-model="patientInjury9.total_days_antibiotic_use" class="con"
						placeholder="请输入天数" />
				</view>

				<!-- 血液净化治疗总天数 -->
				<view class="selectCon">
					<view class="label">血液净化治疗总天数</view>
					<input type="number" v-model="patientInjury9.total_days_blood_purification" class="con"
						placeholder="请输入天数" />
				</view>
			</div>

			<!-- 住院期间主要并发症汇总 -->
			<div class="part-item">
				<div class="part-title">住院期间主要并发症汇总</div>
				<view class="selectCon">
					<view class="label">深静脉血栓（DVT）</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.deep_vein_thrombosis_dvt = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.deep_vein_thrombosis_dvt == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.deep_vein_thrombosis_dvt == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- INSERT_YOUR_CODE -->

				<view class="selectCon">
					<view class="label">肺栓塞（PE）</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.pulmonary_embolism_pe = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.pulmonary_embolism_pe == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.pulmonary_embolism_pe == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">压疮</view>
					<radio-group class="radio-group" @change="e => patientInjury9.pressure_ulcer = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.pressure_ulcer == 1" color="#5677fc"></radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.pressure_ulcer == 0" color="#5677fc"></radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">应激性溃疡/消化道出血</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.stress_ulcer_gastrointestinal_bleeding = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.stress_ulcer_gastrointestinal_bleeding == 1"
								color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.stress_ulcer_gastrointestinal_bleeding == 0"
								color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">心力衰竭</view>
					<radio-group class="radio-group" @change="e => patientInjury9.heart_failure = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.heart_failure == 1" color="#5677fc"></radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.heart_failure == 0" color="#5677fc"></radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">心肌梗死</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.myocardial_infarction = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.myocardial_infarction == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.myocardial_infarction == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">严重心律失常</view>
					<radio-group class="radio-group" @change="e => patientInjury9.severe_arrhythmia = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.severe_arrhythmia == 1" color="#5677fc"></radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.severe_arrhythmia == 0" color="#5677fc"></radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">高血糖症（需要胰岛素治疗）</view>
					<radio-group class="radio-group" @change="e => patientInjury9.hyperglycemia = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.hyperglycemia == 1" color="#5677fc"></radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.hyperglycemia == 0" color="#5677fc"></radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">脓毒症（Sepsis-3）</view>
					<radio-group class="radio-group" @change="e => patientInjury9.sepsis_sepsis3 = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.sepsis_sepsis3 == 1" color="#5677fc"></radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.sepsis_sepsis3 == 0" color="#5677fc"></radio>否
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">感染性休克</view>
					<radio-group class="radio-group" @change="e => patientInjury9.septic_shock = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.septic_shock == 1" color="#5677fc"></radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.septic_shock == 0" color="#5677fc"></radio>否
						</label>
					</radio-group>
				</view>
			</div>

			<!-- 最终转归 -->
			<div class="part-item">
				<div class="part-title">最终转归</div>
				<!-- date_of_discharge_death -->
				<view class="selectCon">
					<view class="label">出院/死亡日期</view>
					<view class="con" @click="openDateTimePicker('date_of_discharge_death', 7)">
						{{ patientInjury9.date_of_discharge_death || '请选择' }}
					</view>
				</view>


				<!-- INSERT_YOUR_CODE -->
				<!-- 出院状态 -->
				<view class="selectCon">
					<view class="label">出院状态</view>
					<radio-group class="radio-group" @change="e => patientInjury9.status_at_discharge = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.status_at_discharge == 1" color="#5677fc"></radio>
							治愈出院
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.status_at_discharge == 2" color="#5677fc"></radio>
							转院(至康复医院或其他)
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.status_at_discharge == 3" color="#5677fc"></radio>
							放弃治疗/自动出院
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.status_at_discharge == 4" color="#5677fc"></radio>
							院内死亡
						</label>
					</radio-group>
				</view>

				<!-- 死亡原因，仅当院内死亡时显示 -->
				<view class="selectCon" v-if="patientInjury9.status_at_discharge == 4">
					<view class="label">死亡原因</view>
					<radio-group class="radio-group" @change="e => patientInjury9.cause_of_death = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.cause_of_death == 1" color="#5677fc"></radio>
							脓毒症/感染性休克
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.cause_of_death == 2" color="#5677fc"></radio>
							多器官功能衰竭(MODS)
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.cause_of_death == 3" color="#5677fc"></radio>心源性死亡
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.cause_of_death == 4" color="#5677fc"></radio>呼吸衰竭
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.cause_of_death == 5" color="#5677fc"></radio>脑死亡
						</label>
						<label class="tui-radio">
							<radio value="99" :checked="patientInjury9.cause_of_death == 99" color="#5677fc"></radio>其他
						</label>
					</radio-group>
					<view v-if="patientInjury9.cause_of_death == 99" class="inputCon">
						<input class="tui-input" type="text" placeholder="请填写其他原因"
							v-model="patientInjury9.other_cause_of_death" />
					</view>
				</view>
			</div>

			<!-- 出院时功能、症状与瘢痕状态评估 -->
			<div class="part-item">
				<div class="part-title">出院时功能、症状与瘢痕状态评估</div>
				<!-- FAB评分 -->
				<view class="selectCon">
					<view class="label">功能评估量表（FAB）评分</view>
					<input class="tui-input" type="number" min="0" placeholder="请输入分数"
						v-model="patientInjury9.functional_fab_score" />
				</view>

				<!-- 独立进食能力 -->
				<view class="selectCon">
					<view class="label">独立进食能力</view>
					<radio-group class="radio-group" @change="e => patientInjury9.independent_eating = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.independent_eating == 1" color="#5677fc"></radio>
							完全独立
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.independent_eating == 2" color="#5677fc"></radio>
							部分需要帮助
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.independent_eating == 3" color="#5677fc"></radio>
							完全依赖
						</label>
					</radio-group>
				</view>

				<!-- 独立穿衣能力 -->
				<view class="selectCon">
					<view class="label">独立穿衣能力</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.independent_dressing = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.independent_dressing == 1" color="#5677fc">
							</radio>
							完全独立
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.independent_dressing == 2" color="#5677fc">
							</radio>
							部分需要帮助
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.independent_dressing == 3" color="#5677fc">
							</radio>
							完全依赖
						</label>
					</radio-group>
				</view>

				<!-- 独立如厕/洗浴 -->
				<view class="selectCon">
					<view class="label">独立如厕/洗浴</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.independent_toileting_bathing = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.independent_toileting_bathing == 1"
								color="#5677fc">
							</radio>完全独立
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.independent_toileting_bathing == 2"
								color="#5677fc">
							</radio>部分需要帮助
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.independent_toileting_bathing == 3"
								color="#5677fc">
							</radio>完全依赖
						</label>
					</radio-group>
				</view>

				<!-- 独立行走/转移能力 -->
				<view class="selectCon">
					<view class="label">独立行走/转移能力</view>
					<radio-group class="radio-group" @change="e => patientInjury9.independent_walking = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.independent_walking == 1" color="#5677fc"></radio>
							完全独立
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.independent_walking == 2" color="#5677fc"></radio>
							需辅助设备
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.independent_walking == 3" color="#5677fc"></radio>
							需他人搀扶
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.independent_walking == 4" color="#5677fc"></radio>
							卧床
						</label>
					</radio-group>
				</view>

				<!-- 出院去向/照护需求 -->
				<view class="selectCon">
					<view class="label">出院去向/照护需求</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.discharge_destination = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.discharge_destination == 1" color="#5677fc">
							</radio>
							直接回家独立生活
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.discharge_destination == 2" color="#5677fc">
							</radio>
							回家但需家人照护
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.discharge_destination == 3" color="#5677fc">
							</radio>
							需家庭护士/康复师上门服务
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.discharge_destination == 4" color="#5677fc">
							</radio>
							转至专业康复机构
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.discharge_destination == 5" color="#5677fc">
							</radio>
							转至长期护理机构
						</label>
					</radio-group>
				</view>

				<!-- 躯干色素沉着 -->
				<view class="selectCon">
					<view class="label">躯干色素沉着</view>
					<radio-group class="radio-group" @change="e => patientInjury9.trunk_pigmentation = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.trunk_pigmentation == 0" color="#5677fc"></radio>
							正常
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.trunk_pigmentation == 1" color="#5677fc"></radio>
							色素减退
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.trunk_pigmentation == 2" color="#5677fc"></radio>
							色素沉着
						</label>
					</radio-group>
				</view>

				<!-- 躯干血管分布 -->
				<view class="selectCon">
					<view class="label">躯干血管分布</view>
					<radio-group class="radio-group" @change="e => patientInjury9.trunk_vascularity = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.trunk_vascularity == 0" color="#5677fc"></radio>正常
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.trunk_vascularity == 1" color="#5677fc"></radio>粉红
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.trunk_vascularity == 2" color="#5677fc"></radio>红色
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.trunk_vascularity == 3" color="#5677fc"></radio>紫色
						</label>
					</radio-group>
				</view>

				<!-- 躯干瘢痕柔软度 -->
				<view class="selectCon">
					<view class="label">躯干瘢痕柔软度</view>
					<radio-group class="radio-group" @change="e => patientInjury9.trunk_pliability = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.trunk_pliability == 0" color="#5677fc"></radio>正常
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.trunk_pliability == 1" color="#5677fc"></radio>柔软
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.trunk_pliability == 2" color="#5677fc"></radio>屈服
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.trunk_pliability == 3" color="#5677fc"></radio>坚实
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.trunk_pliability == 4" color="#5677fc"></radio>挛缩
						</label>
					</radio-group>
				</view>

				<!-- 躯干瘢痕高度 -->
				<view class="selectCon">
					<view class="label">躯干瘢痕高度</view>
					<radio-group class="radio-group" @change="e => patientInjury9.trunk_height = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.trunk_height == 0" color="#5677fc"></radio>平坦
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.trunk_height == 1" color="#5677fc"></radio>&lt;1mm
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.trunk_height == 2" color="#5677fc"></radio>1-2mm
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.trunk_height == 3" color="#5677fc"></radio>&gt;2mm
						</label>
					</radio-group>
				</view>

				<!-- 躯干VSS总分 -->
				<view class="selectCon">
					<view class="label">躯干VSS总分</view>
					<input class="tui-input" type="number" min="0" placeholder="请输入分数"
						v-model="patientInjury9.total_vss_score_for_trunk" />
				</view>
				<!-- 四肢色素沉着 -->
				<view class="selectCon">
					<view class="label">四肢色素沉着</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.extremities_pigmentation = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.extremities_pigmentation == 0" color="#5677fc">
							</radio>正常
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.extremities_pigmentation == 1" color="#5677fc">
							</radio>色素减退
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.extremities_pigmentation == 2" color="#5677fc">
							</radio>色素沉着
						</label>
					</radio-group>
				</view>

				<!-- 四肢血管分布 -->
				<view class="selectCon">
					<view class="label">四肢血管分布</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.extremities_vascularity = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.extremities_vascularity == 0" color="#5677fc">
							</radio>
							正常
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.extremities_vascularity == 1" color="#5677fc">
							</radio>
							粉红
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.extremities_vascularity == 2" color="#5677fc">
							</radio>
							红色
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.extremities_vascularity == 3" color="#5677fc">
							</radio>
							紫色
						</label>
					</radio-group>
				</view>

				<!-- 四肢瘢痕柔软度 -->
				<view class="selectCon">
					<view class="label">四肢瘢痕柔软度</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.extremities_pliability = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.extremities_pliability == 0" color="#5677fc">
							</radio>
							正常
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.extremities_pliability == 1" color="#5677fc">
							</radio>
							柔软
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.extremities_pliability == 2" color="#5677fc">
							</radio>
							屈服
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.extremities_pliability == 3" color="#5677fc">
							</radio>
							坚实
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.extremities_pliability == 4" color="#5677fc">
							</radio>
							挛缩
						</label>
					</radio-group>
				</view>

				<!-- 四肢瘢痕高度 -->
				<view class="selectCon">
					<view class="label">四肢瘢痕高度</view>
					<radio-group class="radio-group" @change="e => patientInjury9.extremities_height = e.detail.value">
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.extremities_height == 0" color="#5677fc"></radio>
							平坦
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.extremities_height == 1" color="#5677fc"></radio>
							&lt;1mm
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.extremities_height == 2" color="#5677fc"></radio>
							1-2mm
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.extremities_height == 3" color="#5677fc"></radio>
							&gt;2mm
						</label>
					</radio-group>
				</view>

				<!-- 四肢VSS总分 -->
				<view class="selectCon">
					<view class="label">四肢VSS总分</view>
					<input class="tui-input" type="number" min="0" placeholder="请输入分数"
						v-model="patientInjury9.total_vss_score_for_extremities" />
				</view>
			</div>

			<!-- 瘢痕主观评估 -->
			<div class="part-item">
				<div class="part-title">瘢痕主观评估</div>
				<!-- 瘢痕疼痛 -->
				<view class="selectCon">
					<view class="label">瘢痕疼痛（1-10分）</view>
					<input class="tui-input" type="number" min="1" max="10" placeholder="请输入分数"
						v-model="patientInjury9.scar_pain" />
				</view>

				<!-- 瘢痕瘙痒 -->
				<view class="selectCon">
					<view class="label">瘢痕瘙痒（1-10分）</view>
					<input class="tui-input" type="number" min="1" max="10" placeholder="请输入分数"
						v-model="patientInjury9.scar_itching" />
				</view>

				<!-- 颜色与正常皮肤差异 -->
				<view class="selectCon">
					<view class="label">颜色与正常皮肤差异（1-10分）</view>
					<input class="tui-input" type="number" min="1" max="10" placeholder="请输入分数"
						v-model="patientInjury9.color_difference_from_normal_skin" />
				</view>

				<!-- 瘢痕硬度 -->
				<view class="selectCon">
					<view class="label">瘢痕硬度（1-10分）</view>
					<input class="tui-input" type="number" min="1" max="10" placeholder="请输入分数"
						v-model="patientInjury9.scar_stiffness" />
				</view>

				<!-- 瘢痕厚度 -->
				<view class="selectCon">
					<view class="label">瘢痕厚度（1-10分）</view>
					<input class="tui-input" type="number" min="1" max="10" placeholder="请输入分数"
						v-model="patientInjury9.scar_thickness" />
				</view>

				<!-- 瘢痕不规则度 -->
				<view class="selectCon">
					<view class="label">瘢痕不规则度（1-10分）</view>
					<input class="tui-input" type="number" min="1" max="10" placeholder="请输入分数"
						v-model="patientInjury9.scar_irregularity" />
				</view>

				<!-- 患者对瘢痕的总体看法 -->
				<view class="selectCon">
					<view class="label">患者对瘢痕的总体看法（1-10分）</view>
					<input class="tui-input" type="number" min="1" max="10" placeholder="请输入分数"
						v-model="patientInjury9.patient_opinion_of_the_scar" />
				</view>

				<!-- 患者量表总分 -->
				<view class="selectCon">
					<view class="label">患者量表总分</view>
					<input class="tui-input" type="number" min="0" placeholder="请输入分数"
						v-model="patientInjury9.total_patient_score" />
				</view>
			</div>

			<!-- 瘢痕客观评估 -->
			<div class="part-item">
				<div class="part-title">瘢痕客观评估</div>
				<!-- POSAS 观察者量表 -->
				<view class="selectCon">
					<view class="label">血管分布（POSAS）</view>
					<radio-group class="radio-group" @change="e => patientInjury9.posas_vascularity = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.posas_vascularity == 1" color="#5677fc"></radio>正常
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.posas_vascularity == 2" color="#5677fc"></radio>略红
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.posas_vascularity == 3" color="#5677fc"></radio>红
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.posas_vascularity == 4" color="#5677fc"></radio>很红
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.posas_vascularity == 5" color="#5677fc"></radio>
							紫/暗红
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">色素沉着（POSAS）</view>
					<radio-group class="radio-group" @change="e => patientInjury9.posas_Pigmentation = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.posas_Pigmentation == 1" color="#5677fc"></radio>
							正常
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.posas_Pigmentation == 2" color="#5677fc"></radio>
							略浅/略深
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.posas_Pigmentation == 3" color="#5677fc"></radio>
							浅/深
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.posas_Pigmentation == 4" color="#5677fc"></radio>
							很浅/很深
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.posas_Pigmentation == 5" color="#5677fc"></radio>
							极浅/极深
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">瘢痕厚度（POSAS）</view>
					<radio-group class="radio-group" @change="e => patientInjury9.posas_Thickness = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.posas_Thickness == 1" color="#5677fc"></radio>
							与正常皮肤齐平
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.posas_Thickness == 2" color="#5677fc"></radio>略高
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.posas_Thickness == 3" color="#5677fc"></radio>高
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.posas_Thickness == 4" color="#5677fc"></radio>很高
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.posas_Thickness == 5" color="#5677fc"></radio>极高
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">表面平整度（POSAS）</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.posas_surface_texture = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.posas_surface_texture == 1" color="#5677fc">
							</radio>平整
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.posas_surface_texture == 2" color="#5677fc">
							</radio>
							略不平整
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.posas_surface_texture == 3" color="#5677fc">
							</radio>
							不平整
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.posas_surface_texture == 4" color="#5677fc">
							</radio>
							很不平整
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.posas_surface_texture == 5" color="#5677fc">
							</radio>
							极不平整
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">柔软度（POSAS）</view>
					<radio-group class="radio-group" @change="e => patientInjury9.posas_pliability = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.posas_pliability == 1" color="#5677fc"></radio>柔软
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.posas_pliability == 2" color="#5677fc"></radio>略硬
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.posas_pliability == 3" color="#5677fc"></radio>硬
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.posas_pliability == 4" color="#5677fc"></radio>很硬
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.posas_pliability == 5" color="#5677fc"></radio>极硬
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">表面积（POSAS）</view>
					<radio-group class="radio-group" @change="e => patientInjury9.posas_surface_area = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.posas_surface_area == 1" color="#5677fc"></radio>
							与正常皮肤相同
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.posas_surface_area == 2" color="#5677fc"></radio>
							略大
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.posas_surface_area == 3" color="#5677fc"></radio>大
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.posas_surface_area == 4" color="#5677fc"></radio>
							很大
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.posas_surface_area == 5" color="#5677fc"></radio>
							极大
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">观察者对瘢痕的总体看法（POSAS）</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.posas_overall_opinion = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.posas_overall_opinion == 1" color="#5677fc">
							</radio>
							非常接近正常皮肤
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.posas_overall_opinion == 2" color="#5677fc">
							</radio>
							接近正常皮肤
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.posas_overall_opinion == 3" color="#5677fc">
							</radio>
							有些不同
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.posas_overall_opinion == 4" color="#5677fc">
							</radio>
							很不同
						</label>
						<label class="tui-radio">
							<radio value="5" :checked="patientInjury9.posas_overall_opinion == 5" color="#5677fc">
							</radio>
							极度不同
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">观察者量表总分（POSAS）</view>
					<input class="tui-input" type="number" min="0" placeholder="请输入总分"
						v-model="patientInjury9.posas_doctor_score" />
				</view>
			</div>

			<!-- 出院宣教与随访计划 -->
			<div class="part-item">
				<div class="part-title">出院宣教与随访计划</div>

				<!-- 是否已提供详细的书面用药清单 -->
				<view class="selectCon">
					<view class="label">是否已提供详细的书面用药清单</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.medication_list_provided = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.medication_list_provided == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.medication_list_provided == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- 是否已进行伤口换药/护理操作演示 -->
				<view class="selectCon">
					<view class="label">是否已进行伤口换药/护理操作演示</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.wound_demonstration_performed = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.wound_demonstration_performed == 1"
								color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.wound_demonstration_performed == 0"
								color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- 患者/家属是否能独立完成操作 -->
				<view class="selectCon">
					<view class="label">患者/家属是否能独立完成操作</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.patient_family_perform_independently = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.patient_family_perform_independently == 1"
								color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.patient_family_perform_independently == 0"
								color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- 是否已指导压力治疗（如弹力套）的穿戴与注意事项 -->
				<view class="selectCon">
					<view class="label">是否已指导压力治疗（如弹力套）的穿戴与注意事项</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.instructions_on_pressure = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.instructions_on_pressure == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.instructions_on_pressure == 2" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="9" :checked="patientInjury9.instructions_on_pressure == 9" color="#5677fc">
							</radio>不适用
						</label>
					</radio-group>
				</view>

				<!-- 是否已指导瘢痕用药/润肤露的使用 -->
				<view class="selectCon">
					<view class="label">是否已指导瘢痕用药/润肤露的使用</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.instructions_on_scar_medication = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.instructions_on_scar_medication == 1"
								color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.instructions_on_scar_medication == 2"
								color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="9" :checked="patientInjury9.instructions_on_scar_medication == 9"
								color="#5677fc">
							</radio>不适用
						</label>
					</radio-group>
				</view>

				<!-- 是否已提供个体化的家庭康复锻炼计划 -->
				<view class="selectCon">
					<view class="label">是否已提供个体化的家庭康复锻炼计划</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.exercise_plan_provided = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.exercise_plan_provided == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.exercise_plan_provided == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- 是否已预约首次门诊康复治疗 -->
				<view class="selectCon">
					<view class="label">是否已预约首次门诊康复治疗</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.first_rehabilitation_scheduled = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.first_rehabilitation_scheduled == 1"
								color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.first_rehabilitation_scheduled == 2"
								color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="9" :checked="patientInjury9.first_rehabilitation_scheduled == 9"
								color="#5677fc">
							</radio>不适用
						</label>
					</radio-group>
				</view>

				<!-- 是否已提供出院后营养建议 -->
				<view class="selectCon">
					<view class="label">是否已提供出院后营养建议</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.nutrition_advice_provided = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.nutrition_advice_provided == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.nutrition_advice_provided == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- 首次返院复诊日期 -->
				<view class="selectCon">
					<view class="label">首次返院复诊日期</view>
					<view class="con" @click="openDateTimePicker('first_return_visit_date', 2)">
						{{ patientInjury9.first_return_visit_date || '请选择' }}
					</view>
				</view>

				<!-- 已提供紧急情况联系方式 -->
				<view class="selectCon">
					<view class="label">已提供紧急情况联系方式</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.emergency_contact_provided = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.emergency_contact_provided == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.emergency_contact_provided == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- 是否已告知需立即就医的危险信号 -->
				<view class="selectCon">
					<view class="label">是否已告知需立即就医的危险信号</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.danger_signs_attention = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.danger_signs_attention == 1" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="0" :checked="patientInjury9.danger_signs_attention == 0" color="#5677fc">
							</radio>否
						</label>
					</radio-group>
				</view>

				<!-- 患者是否已为出院做好准备 -->
				<view class="selectCon">
					<view class="label">患者是否已为出院做好准备</view>
					<radio-group class="radio-group"
						@change="e => patientInjury9.patient_readiness_for_discharge = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInjury9.patient_readiness_for_discharge == 1"
								color="#5677fc">
							</radio>
							完全准备好
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInjury9.patient_readiness_for_discharge == 2"
								color="#5677fc">
							</radio>
							基本准备好
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInjury9.patient_readiness_for_discharge == 3"
								color="#5677fc">
							</radio>有些没底
						</label>
						<label class="tui-radio">
							<radio value="4" :checked="patientInjury9.patient_readiness_for_discharge == 4"
								color="#5677fc">
							</radio>
							完全没准备好
						</label>
					</radio-group>
				</view>

				<!-- 出院后在家面临的最大困难 -->
				<view class="textareaCon">
					<view class="label">出院后在家面临的最大困难</view>
					<div class="options" style="margin-top: 12rpx;">
						<tui-checkbox-group class="radio-group" @change="deffchange">
							<label class="tui-radio">
								<tui-checkbox :checked="patientInjury9.biggest_difficulties_home?.includes('1')"
									value="1" color="#5677fc" borderColor="#999">
								</tui-checkbox>
								<text class="tui-text">伤口/瘢痕护理</text>
							</label>
							<view class="tui-radio">
								<tui-checkbox :checked="patientInjury9.biggest_difficulties_home?.includes('2')"
									value="2" color="#5677fc" borderColor="#999">
								</tui-checkbox>
								<text class="tui-text">疼痛/瘙痒管理</text>
							</view>
							<view class="tui-radio">
								<tui-checkbox :checked="patientInjury9.biggest_difficulties_home?.includes('3')"
									value="3" color="#5677fc" borderColor="#999">
								</tui-checkbox>
								<text class="tui-text">康复锻炼执行</text>
							</view>
							<view class="tui-radio">
								<tui-checkbox :checked="patientInjury9.biggest_difficulties_home?.includes('4')"
									value="4" color="#5677fc" borderColor="#999">
								</tui-checkbox>
								<text class="tui-text">用药复杂</text>
							</view>
							<view class="tui-radio">
								<tui-checkbox :checked="patientInjury9.biggest_difficulties_home?.includes('5')"
									value="5" color="#5677fc" borderColor="#999">
								</tui-checkbox>
								<text class="tui-text">经济负担</text>
							</view>
							<view class="tui-radio">
								<tui-checkbox :checked="patientInjury9.biggest_difficulties_home?.includes('6')"
									value="6" color="#5677fc" borderColor="#999">
								</tui-checkbox>
								<text class="tui-text">心理调适</text>
							</view>
							<view class="tui-radio">
								<tui-checkbox :checked="patientInjury9.biggest_difficulties_home?.includes('99')"
									value="99" color="#5677fc" borderColor="#999">
								</tui-checkbox>
								<text class="tui-text">其他</text>
							</view>
						</tui-checkbox-group>
					</div>
				</view>

				<!-- 其他困难描述 -->
				<view class="textareaCon">
					<view class="label">其他困难描述</view>
					<textarea class="tui-textarea" placeholder="请填写"
						v-model="patientInjury9.description_of_other_difficulties" />
				</view>
			</div>


			<!-- 时间选择器 -->
			<tui-datetime ref="dateTimePicker" :setDateTime="dateTimePickerValue" :type="dateTimePickerType"
				:startYear="1900" :endYear="2100" @confirm="e => dateTimePickerConfirm(e)"></tui-datetime>

			<!-- 提交按钮 -->
			<tui-form-button @click="patientInjury9Save()" height="2.6" radius="50px">确定</tui-form-button>

		</view>
	</view>

</template>

<script>
	import config from "@/common/config";
	export default {
		name: 'Form9',
		props: {
			patientId: {
				type: String,
				required: true,
			},
		},
		data() {
			return {
				uploaderHeader: {
					Authorization: `${uni.getStorageSync("thorui_token")}`,
				},
				fileUploadServerUrl: config.baseUrl + "/api/ajax/upload",
				dateTimePickerField: '',
				dateTimePickerValue: '',
				dateTimePickerType: 1,
				patientInjury9: {},
			}
		},
		methods: {
			uploadImages(e, filed) {
				console.log(e);
				this.patientInjury9[filed] = e.imgArr.join(',');
			},
			setForm(data) {
				const keys = Object.keys(data);
				keys.forEach(key => {
					if (data[key] === undefined || data[key] === null) {
						delete data[key]
					}
				})
				this.patientInjury9 = data;
			},
			deffchange(e) {
				this.patientInjury9.biggest_difficulties_home = e.detail.value;
			},
			openDateTimePicker(field, type) {
				this.dateTimePickerField = field;
				this.dateTimePickerValue = this.patientInjury9[field];
				this.dateTimePickerType = type;
				this.$refs.dateTimePicker.show();
			},
			dateTimePickerConfirm(e) {
				this.patientInjury9[this.dateTimePickerField] = e.result;
				this.dateTimePickerValue = '';
				this.dateTimePickerField = '';
				this.dateTimePickerType = 1;
			},
			patientInjury9Save() {
				const formData = {
					...this.patientInjury9,
					patient_id: this.patientId
				}
				console.log(formData)

				uni.request({
					url: `http://8.152.99.39/api/patient_injury9/set`,
					method: 'POST',
					data: formData,
					header: {
						'Authorization': `${uni.getStorageSync("thorui_token")}`,
						'Content-Type': 'application/x-www-form-urlencoded',
					},
					success: (res) => {
						uni.showToast({
							title: res.data.msg,
							icon: res.data.code == 1 ? 'success' : 'none'
						});
					},
					fail: (err) => {
						console.log(err);
					}
				})

				// this.http
				//   .post("/api/patient_injury9/set", {
				//     data: formData,
				//   })
				//   .then((res) => {
				//     uni.showToast({
				//       title: res.data.msg,
				//       icon: res.data.code == 1 ? 'success' : 'none'
				//     });
				//   })
				//   .catch((err) => { });
			},
		}
	}
</script>

<style scoped lang="scss">
	.selectCon,
	.textareaCon,
	textarea {
		font-size: 24rpx !important;
	}

	.selectCon {
		display: flex;
		align-items: center;
		gap: 10rpx;
		border-bottom: solid 1px rgba(245, 245, 245, 1);
		padding-bottom: 25rpx;
		margin-bottom: 35rpx;
		flex-wrap: wrap;

		.label {
			font-weight: 500;
			// font-size: 26rpx;
			color: #8e8f9b;
			width: 190rpx;
		}

		.switch {
			width: 300rpx !important;
		}

		.con {
			font-weight: 500;
			// font-size: 28rpx;
			color: #333333;
			flex: 1;
			text-align: right;
		}

		input {
			border: none;
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
			text-align: right;
			flex: 1;
		}
	}

	.textareaCon {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 27rpx;

		textarea {
			margin-top: 12rpx;
			box-sizing: border-box;
			padding: 12rpx;
			border-radius: 12rpx;
			background-color: rgb(247, 247, 247);
			border: none;
			font-weight: 500;
			// font-size: 28rpx;
			color: #333333;
			min-height: 240rpx;
			width: 100%;
		}

		.label {
			width: 100% !important;
			font-weight: 500;
			// font-size: 0.8125rem;
			color: #8e8f9b;
			width: 5.9375rem;
		}
	}

	.class-name {
		font-weight: 500;
		font-size: 26rpx;
		color: #8e8f9b;
		margin-bottom: 26rpx;
	}

	.tui-switch__input {
		transform: scale(0.75) !important;
	}

	.radio-group {
		font-size: 24rpx;
	}

	.tui-radio, .tui-checkbox {
		margin-right: 21rpx;
		display: inline-block;
		margin-bottom: 21rpx;
	}

	.part-title {
		font-size: 21rpx;
		margin-bottom: 21rpx;
		color: #333;
		padding: 12rpx;
		font-weight: bold;
		background-color: #f1f1f1;
		text-align: center;
	}
</style>